package com.kongge.viewdisplayframework.page;

import android.app.ActionBar;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MenuItem;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.Toast;

import com.kongge.viewdisplayframework.R;
import com.kongge.viewdisplayframeworklib.event.param.EQParam;
import com.kongge.viewdisplayframeworklib.model.NavigateItem;
import com.kongge.viewdisplayframeworklib.ui.Component;
import com.kongge.viewdisplayframeworklib.ui.ComponentContainer;

/**
 * author:kongge
 * date:2018/9/14
 * layout:
 * description:
 */

public class PageQueueTab01 extends RelativeLayout implements ComponentContainer, Component{
    public PageQueueTab01(Context context) {
        super(context);
    }

    public PageQueueTab01(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void onFinishInflate() {
        super.onFinishInflate();
        findViewById(R.id.textView).setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(getContext(), "PageQueueTab01 click!", Toast.LENGTH_SHORT).show();
            }
        });
    }

    @Override
    public boolean getBottomVisible() {
        return true;
    }


    @Override
    public void onComponentContainerForeground() {

    }

    @Override
    public void onComponentContainerBackground() {

    }

    @Override
    public void onComponentContainerRemove() {

    }

    @Override
    public NavigateItem getTitleStruct() {
        return null;
    }

    @Override
    public boolean onInnerBack() {
        return false;
    }

    @Override
    public void onPageFinishInflate() {

    }

    @Override
    public void onBackground() {

    }

    @Override
    public void onForeground() {

    }

    @Override
    public void onRemove() {

    }

    @Override
    public void onActivity() {

    }

    @Override
    public void parseRunTimeParam(EQParam param) {

    }
}
